
package com.sm.shoplook.dao.mapper.suit;

import com.sm.shoplook.domain.suit.Suit;
import com.sm.shoplook.vo.discover.req.DisCoverPageSearchVo;
import com.sm.shoplook.vo.suit.back.req.SuitSearchReqVo;
import com.sm.shoplook.vo.suit.front.resp.SuitPageRespVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;
import java.util.Map;

public interface SuitMapper extends BaseMapper<Suit> {

	List<Integer> selectCategorysByCustomerId(@Param("customerId") Integer customerId);

    /**
     *
     * @param disCoverPageSearchVo
     * @return
     */
	List<SuitPageRespVo> selectSuitePage(DisCoverPageSearchVo disCoverPageSearchVo);

	Map statisCustomerSuits(@Param("customerId") Integer customerId, @Param("suitId") Integer suitId, @Param("status") Integer status);

    int batchDelete(@Param("ids") String[] ids);

    /**
     * 管理平台-套装管理
     * @param suitSearchReqVo
     * @return
     */
    List<SuitPageRespVo> selectSuitListPage(SuitSearchReqVo suitSearchReqVo);

    /**
     * suit套装保存
     * @param suit
     * @return
     */
    int insertSuit(Suit suit);

    List<SuitPageRespVo> selectSuitsByIds(List<Integer> list);
}
